package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.mypetstore.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    List<Category> getCategoryList();
    Category getCategory(@Param("categoryId") String categoryId);
    void insertCategory(Category category);
    List<Category> searchCategoryList(@Param("values") String keywords);
    void updateCategory(Category category);
    void removeCategory(String categoryId);
}
